package com.sacc.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 滚~韬
 * @date 2022/3/28 17:52
 * 基础用户信息
 */
@Data
@TableName(value = "base_user")
public class BaseUser {
    @TableId(value = "open_id")
    private String openId;//用户id
    @TableField("phone_number")
    private String phoneNumber;
    @TableField("role")
    private Integer role;//用户角色,1代表普通角色,0代表root角色
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT,value = "create_time")
    private LocalDateTime createTime;

}
